Skip to content

Test: robust timing in the region signal-handler test - #334

Merged
b-re-w merged 1 commit into
developfrom
feat/tp-region-signal-test-robust
Oct 25, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/tp-region-signal-test-robust

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 25, 2026

Copy link
Copy Markdown
Member

The TypedPython CI macOS job failed on the #331 merge commit only in test_regions.py::test_a_class_change_by_a_signal_handler_in_the_consumer_deopts_the_region_host ('the handler never landed inside the call'). There was no defect: the timer was set from one baseline, and the shared runner's next calls were longer. The test now re-measures the call before each of up to 12 attempts (at 0.85/0.8/0.75/0.7 of it).

Evidence:

  • The filtered test passes 3/3 locally, and the whole file passes 27/27.
  • With _rguard disabled (the region field-read class check), the test still fails, so it still detects the missing guard.

The rest of TypedPython CI on 4acf7fb: Linux plain and ASan+UBSan are green (the vd fix from #331), and the app fixture job is green.

…attempt

On the macOS CI runner one baseline measurement did not predict the next call's length, so every
timer landed after the call and the test failed without any defect. Each of up to 12 attempts now
measures first. A mutant without the region field-read guard still fails it.
@b-re-w
b-re-w merged commit 52f641a into develop Oct 25, 2026
@b-re-w
b-re-w deleted the feat/tp-region-signal-test-robust branch October 25, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant